﻿<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="AnswerViewControl.ascx.cs"
    Inherits="ud_SwirlingQuestion.AnswerViewControl" %>
<asp:Panel ID="pnlBlog" runat="server" CssClass="panelwrapper blogwrapper blogview">
    <portal:ModuleTitleControlCustom ID="Title1" runat="server" RenderArtisteer="true"
        UseLowerCaseArtisteerClasses="true" />
    <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent"
        RenderArtisteer="true" UseLowerCaseArtisteerClasses="true">
        <div class="modulecontent">
            <asp:Panel ID="divblog" runat="server" CssClass="blogcenter-rightnav" SkinID="plain">
                <div class="body">
                    <h2 class="blogtitle">
                        <asp:Literal ID="litTitle" runat="server" EnableViewState="false" />&nbsp;
                        <asp:HyperLink ID="lnkEdit" runat="server" EnableViewState="false" CssClass="ModuleEditLink"></asp:HyperLink>
                    </h2>
                    <div class="blogdate">
                        <asp:Literal ID="litAuthor" runat="server" EnableViewState="false" Visible="false" />
                        <asp:Literal ID="litStartDate" runat="server" EnableViewState="false" />
                    </div>
                    <asp:Panel ID="pnlDetails" runat="server">
                        <div class="question">
                            <mp:SiteLabel ID="lblQuestionPrefix" runat="server" ResourceFile="SwirlingQuestionResource"
                                ConfigKey="QuestionPrefix" CssClass="questionprefix" />
                            <asp:Literal ID="litQuestion" runat="server" EnableViewState="false" />
                        </div>
                        <div class="blogtext">
                            <mp:SiteLabel ID="lblAnswerPrefix" runat="server" ResourceFile="SwirlingQuestionResource"
                                ConfigKey="AnswerPrefix" CssClass="answerprefix" />
                            <asp:Literal ID="litDescription" runat="server" EnableViewState="false" />
                        </div>
                        <div class="bloghit">
                            <portal:TweetThisLink ID="tt1" runat="server" />
                            <portal:FacebookShareButton ID="fbs1" runat="server" />
                            <portal:GoogleBookmarkButton ID="gbb1" runat="server"  />
                            <mp:SiteLabel ID="lblHitCount" runat="server" ResourceFile="ArticleResources" ConfigKey="HitCount"
                                CssClass="hit" />
                            <asp:Label ID="lblHitCountLabel" runat="server" CssClass="texthit" />
                        </div>
                        <div class="blogcopyright">
                            <asp:Label ID="lblCopyright" runat="server" />
                        </div>
                        <asp:Panel ID="pnlOther" runat="server" CssClass="otherpanel">
                            <div class="otherheader">
                                <asp:Label ID="lblOtherHeader" runat="server" CssClass="otherheadertext" /></div>
                            <asp:UpdatePanel ID="updatePanel" UpdateMode="Conditional" runat="server">
                                <ContentTemplate>
                                    <asp:ListView ID="lvOtherArticles" runat="server" ItemPlaceholderID="placeHolder">
                                        <LayoutTemplate>
                                            <asp:Panel ID="pnlPlaceHolderWrapper" runat="server" CssClass="other">
                                                <asp:PlaceHolder ID="placeHolder" runat="server" />
                                            </asp:Panel>
                                        </LayoutTemplate>
                                        <ItemTemplate>
                                            <div class="item">
                                                <asp:HyperLink ID="hplOtherTitle" CssClass="link" runat="server" ToolTip='<%# FormatTooltip(Eval("Title").ToString(), Eval("Question").ToString()) %>'
                                                    Text='<%# Eval("Title") %>' NavigateUrl='<%# FormatBlogTitleUrl(Eval("ItemUrl").ToString(), Eval("Guid").ToString()) %>' />
                                            </div>
                                        </ItemTemplate>
                                    </asp:ListView>
                                    <asp:DataPager ID="dpOtherArticles" runat="server" PagedControlID="lvOtherArticles">
                                        <Fields>
                                            <asp:TemplatePagerField>
                                                <PagerTemplate>
                                                    <mp:SiteLabel ID="lblPageIndex" runat="server" ResourceFile="SwirlingQuestionResource"
                                                        ConfigKey="PageIndexLabel" CssClass="pageindex" />
                                                    <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# (Container.StartRowIndex / Container.PageSize) + 1 %>" />
                                                    <mp:SiteLabel ID="lblPageTotal" runat="server" ResourceFile="SwirlingQuestionResource"
                                                        ConfigKey="PageTotalLabel" CssClass="pagetotal" />
                                                    <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# (Container.TotalRowCount / (Container.PageSize + 1)) + 1 %>" />
                                                </PagerTemplate>
                                            </asp:TemplatePagerField>
                                            <asp:NextPreviousPagerField ShowFirstPageButton="true" ShowPreviousPageButton="true"
                                                ShowLastPageButton="false" ShowNextPageButton="false" FirstPageText="<<" PreviousPageText="<" />
                                            <asp:NumericPagerField CurrentPageLabelCssClass="current" NextPreviousButtonCssClass="navi"
                                                NumericButtonCssClass="numeric" />
                                            <asp:NextPreviousPagerField ShowFirstPageButton="false" ShowPreviousPageButton="false"
                                                ShowLastPageButton="true" ShowNextPageButton="true" NextPageText=">" LastPageText=">>" />
                                        </Fields>
                                    </asp:DataPager>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                            <asp:UpdateProgress ID="upProgress1" runat="server" DisplayAfter="1000">
                                <ProgressTemplate>
                                    <div class="updateProgress1">
                                        <asp:Image ID="imgProgress" runat="server" />
                                    </div>
                                </ProgressTemplate>
                            </asp:UpdateProgress>
                        </asp:Panel>
                    </asp:Panel>
                </div>
            </asp:Panel>
        </div>
    </portal:mojoPanel>
    <div class="cleared">
    </div>
</asp:Panel>
